package com.ms.education.order.service.feign;

import com.ms.education.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>Project:education-UserFeignService
 * <p>Powered by ms on 2023-02-16 18:00:40
 *
 * @author ms
 * @version 1.0
 * @since 1.8
 */
@Component
@FeignClient(value = "service-ucenter")
public interface UcenterFeignService {

    @GetMapping("/ucenter/user/getById/{id}")
    @ResponseBody
    public R getById(@PathVariable("id") Integer id);

    @GetMapping("/ucenter/teacher/getTeacherById/{id}")
    @ResponseBody
    public R getTeacherById(@PathVariable("id")Integer id);

}
